<include file="public@header"/>
<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }
</style>

</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('AdminOrder/index')}">订单列表页</a></li>
        <li class="active"><a href="#">修改备注页面</a></li>
    </ul>
    <form action="{:url('AdminOrder/setRemarks')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
        <input type="text" name="id" value="{$order.id}" style="display: none">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">
                    <tr>
                        <th style="text-align: center">订单号</th>
                        <td>
                            {$order.order}
                        </td>
                    </tr>
                    <tr>
                        <th style="text-align: center">用户手机号</th>
                        <td>
                          {$order.phone}
                        </td>
                    </tr>
                    <tr>
                        <th style="text-align: center">订单具体内容</th>
                        <td>
                            <textarea class="form-control" name="remarks" style="height: 80px;" readonly>{$order.content}</textarea>
                        </td>
                    </tr>
                    <tr>
                        <th style="text-align: center">备注</th>
                        <td>
                            <textarea class="form-control" name="remarks" style="height: 200px;">{$order.remarks}</textarea>
                        </td>
                    </tr>
                    <tr>
                        <th style="text-align: center">提货点和时间</th>
                        <td>
                            <textarea class="form-control" name="address" style="height: 200px;">{$order.address}</textarea>
                        </td>
                    </tr>
                    <tr style="display: none">
                        <th style="text-align: center">是否发完</th>
                        <td>

                            <select class="form-control" name="orderstatus" style="width: 140px;">
                                <foreach name="$statuss" item="vo" key="k">
                                    <if condition="($order.status == $k)">
                                        <option value='{$k}' selected>{$vo}</option>
                                        <else/>
                                        <option value='{$k}'>{$vo}</option>
                                    </if>
                                </foreach>
                            </select>
                        </td>
                    </tr>
                </table>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
                        <a class="btn btn-default" href="{:url('AdminOrder/index')}">{:lang('BACK')}</a>
                    </div>
                </div>
            </div>

        </div>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>